
import {Children, lazy} from 'react'
import {Outlet,Navigate } from 'react-router-dom'
import Mainroutes from "./mine/main/routes"
import Userroutes from "./mine/user/routes"
import Annoroutes from "./mine/anno/routes"
import Adviseroutes from "./mine/advise/routes"
import Graderoutes from "./mine/grade/routes"
import Jiaowuroutes from "./mine/jiaowu/routes"
import UserMineroutes from "./mine/userMine/routes"
import UserRoleroutes from "./mine/userRole/routes"


const Home = lazy(()=>import('./home'))
const Mine = lazy(()=>import('./mine/mine'))



export default [
    {
        path:"/home",
        element:<Home/>,
        children:[
            {
                path:"/home",
                element:<Navigate replace to='/home/mine'></Navigate>
            },
            {
                path:"/home/mine",
                element:<Mine></Mine>,
                children:[
                    {
                        path:"/home/mine",
                        element:<Navigate replace to='/home/mine/main'></Navigate>
                    },
                    ...Mainroutes, 
                    ...Userroutes,
                    ...Annoroutes,
                    ...Adviseroutes,
                    ...Graderoutes,
                    ...Jiaowuroutes,
                    ...UserMineroutes,
                    ...UserRoleroutes
                ]
            },
        ]
    },
    
] 